<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>登录</title>
<script type="text/javascript">
	function register() {
		window.location.href="register";
	}

</script>
</head>
<body>
	<form action="login" method="post">
		<p>
			<input type="text" name="username"  placeholder="用户名">
		</p>
		<p>
			<input type="password" name="password" placeholder="密码">
		</p>
		<p>
			<button type="submit">登录</button>
			<button type="button" onclick="javascript:register();">注册</button>
		</p>
	</form>
</body>
</html>